var net.hosts
22 uses
net (current package)
hosts.go#L32: var hosts struct {
hosts.go#L56: if now.Before(hosts.expire) && hosts.path == hp && len(hosts.byName) > 0 {
hosts.go#L60: if err == nil && hosts.path == hp && hosts.mtime.Equal(mtime) && hosts.size == size {
hosts.go#L61: hosts.expire = now.Add(cacheMaxAge)
hosts.go#L120: hosts.expire = now.Add(cacheMaxAge)
hosts.go#L121: hosts.path = hp
hosts.go#L122: hosts.byName = hs
hosts.go#L123: hosts.byAddr = is
hosts.go#L124: hosts.mtime = mtime
hosts.go#L125: hosts.size = size
hosts.go#L130: hosts.Lock()
hosts.go#L131: defer hosts.Unlock()
hosts.go#L133: if len(hosts.byName) != 0 {
hosts.go#L139: if byName, ok := hosts.byName[absDomainName(host)]; ok {
hosts.go#L150: hosts.Lock()
hosts.go#L151: defer hosts.Unlock()
hosts.go#L157: if len(hosts.byAddr) != 0 {
hosts.go#L158: if hosts, ok := hosts.byAddr[addr]; ok {
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |